#include "widget.h"
#include "ui_widget.h"
#include"QIcon"
Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    QIcon icon(":/OIP-C.jfif");//创建图标对象
    this->setWindowIcon(icon);//设置图标
}

Widget::~Widget()
{
    delete ui;
}

